﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Daybreak.Core.SceneGraph
{
    public class NodeVisitor
    {

        public virtual void VisitGroup(Group group)
        {
            for (int i = 0; i < group.ChildrenCount; i++)
                group[i].Accept(this);

        }

        public virtual void VisitTransform(Transform transform)
        {
            VisitGroup(transform);
        }

        public virtual void VisitGeode(Geode geode) { }

        public virtual void VisitLight(Light light) { }

        public virtual void VisitTerrain(TerrainNode terrain) { }

        public virtual void VisitSwitch(Switch node) { }
    }
}
